package com.xueyu.domain.personinfo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyu.domain.HouseBean;
import com.xueyu.domain.Relative.RelativeBean;
import com.xueyu.domain.bed.Community;
import com.xueyu.domain.bed.bedBean;
import com.xueyu.domain.finance.financeBean;
import com.xueyu.domain.item_Excepts.item_ExceptsBean;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@TableName("personinfo")
public class personinfoBean{

    @TableId("personId")
    private int personId;

    @TableField("communityId")
    private int communityId;

    @TableField("houseId")
    private int houseId;

    @TableField("bedId")
    private int bedId;

    @TableField("realName")
    private String realName;

    @TableField("sex")
    private String sex;

    @TableField("cardNo")
    private String cardNo;

    @TableField("age")
    private int age;

    @TableField("mobile")
    private String mobile;

    @TableField("chairman")
    private String chairman;

    @TableField("faceUrl")
    private String faceUrl;

    @TableField("personType")
    private String personType;

    @TableField("state")
    private int state;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("inTime")
    private String inTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("expireDate")
    private String expireDate;

    @TableField("creater")
    private String creater;

    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private String termName;

    @TableField(exist = false)
    private String houseName;

    @TableField(exist = false)
    private String communityName;

    @TableField(exist = false)
    private String bedNo;

    @TableField(exist = false)
    private String bedState;

    @TableField(exist = false)
    private int stayType;

    @TableField(exist = false)
    private int outrecordstate;

    @TableField(exist = false)
    private String relativeName;

    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private List<financeBean> financeList;

    @TableField(exist = false)
    private List<RelativeBean> relativeList;

    @TableField(exist = false)
    private List<item_ExceptsBean> item_exceptsList;

    public String getTermName() {
        return termName;
    }

    public void setTermName(String termName) {
        this.termName = termName;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public String getBedState() {
        return bedState;
    }

    public void setBedState(String bedState) {
        this.bedState = bedState;
    }

    public int getStayType() {
        return stayType;
    }

    public void setStayType(int stayType) {
        this.stayType = stayType;
    }

    public int getOutrecordstate() {
        return outrecordstate;
    }

    public void setOutrecordstate(int outrecordstate) {
        this.outrecordstate = outrecordstate;
    }

    public List<financeBean> getFinanceList() {
        return financeList;
    }

    public void setFinanceList(List<financeBean> financeList) {
        this.financeList = financeList;
    }

    public List<RelativeBean> getRelativeList() {
        return relativeList;
    }

    public void setRelativeList(List<RelativeBean> relativeList) {
        this.relativeList = relativeList;
    }

    @Override
    public String toString() {
        return "personinfoBean{" +
                "termName='" + termName + '\'' +
                ", houseName='" + houseName + '\'' +
                ", communityName='" + communityName + '\'' +
                ", bedNo='" + bedNo + '\'' +
                ", bedState='" + bedState + '\'' +
                ", stayType=" + stayType +
                ", outrecordstate=" + outrecordstate +
                ", financeList=" + financeList +
                ", relativeList=" + relativeList +
                '}';
    }

}
